[]
Removes the item at the specified index from the collection.
public static Task RemoveAsync<T>(this IDataCollection<T> dataCollection, int index, CancellationToken cancellationToken = default) where T : class?
Public Shared Function RemoveAsync(Of T As Class)(dataCollection As IDataCollection(Of T), index As Integer, Optional cancellationToken As CancellationToken = Nothing) As Task
| Type | Name | Description |
|---|---|---|
| IDataCollection<T> | dataCollection | The data collection. |
| int | index | The index of the item that will be removed. |
| CancellationToken | cancellationToken | The cancellation token. |
| Type | Description |
|---|---|
| Task |
| Name | Description |
|---|---|
| T |
Removes the item at the specified index from the collection.
public static Task RemoveAsync<T>(this IDataCollection<T> dataCollection, int index) where T : class?
Public Shared Function RemoveAsync(Of T As Class)(dataCollection As IDataCollection(Of T), index As Integer) As Task
| Type | Name | Description |
|---|---|---|
| IDataCollection<T> | dataCollection | The data collection. |
| int | index | The index of the item that will be removed. |
| Type | Description |
|---|---|
| Task |
| Name | Description |
|---|---|
| T |